package com.wjk.kylin.rpc.samples.provider.service;

import com.wjk.kylin.rpc.core.provider.annotation.RpcService;
import com.wjk.kylin.rpc.samples.api.service.DemoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author wjk
 */
@Slf4j
@Service
@RpcService
public class DemoServiceImpl implements DemoService {

    @Override
    public String hello(String name) {
        log.info("kylin-rpc-samples-provide.DemoServiceImpl.hello,name:{}", name);
        return System.currentTimeMillis() + "";
    }

    @Override
    public Long sayBye(String name) {
        log.info("kylin-rpc-samples-provide.DemoServiceImpl.sayBye");

        return System.currentTimeMillis();
    }
}
